<template>
  <div class="common-layout">
    <el-container class="layout">
      <el-aside width="200px">
        <el-menu :default-active="$route.path" class="el-menu-demo" @select="handleSelect" router
          active-text-color="#ffd04b" background-color="#545c64" text-color="#fff">
          <el-menu-item index="/Tags">Tags</el-menu-item>
          <el-menu-item index="/Text">Text</el-menu-item>
          <el-menu-item index="/User">User</el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>
<script lang="ts" setup>

const handleSelect = (key: string) => {
  console.log(key)
}
</script>
<style scoped>
.el-menu-demo {
  height: 80vh;
}
</style>
